package com.caiyouxi.system.service;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.boss.buser.model.SysUserProfileBean;
import com.caiyouxi.system.model.SettingsBean;

import java.util.List;

public interface SysSetingService {
    /**
     * 查询登陆是否需要验证码
     */
    ResData select_is_aptcha(SysUserProfileBean bean);

    /***
     * 通过key获取对象
     */
    public SettingsBean get_setting_bean(String key);

    /***
     *通过key获取value值
     */
    public Object get_setting_value(String key);

    /**
     *查询所有system setting数据
     */
    List<SettingsBean> selectAll();


    /**
     * 添加system setting数据
     * */
    ResData add_setting(SettingsBean bean);

    /**
     * 修改system setting数据
     * */
    ResData update_setting(SettingsBean bean);

    /**
     * 删除
     * */
    ResData delete_setting(SettingsBean bean);
}
